Original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information and this statement. Otherwise, the legal liability will be investigated. http://hx100.blog.51cto.com/44326/612301I. Introduction of UnisonUnison is a file Sync tool that can be used under Windows, Linux, and other Unix platforms to keep content consistent between two folders (local or network).
two servers:chmod a+x/script/inotify.shAdd a task to a scheduled task (originally added under/etc/rc.local, but the script does not execute)
The code is as follows
Copy Code
Crontab–e#unison +inotify* * * * * */bin/sh/script/inotify.sh >/dev/null 2>1
Reboot the computer to test whether the contents of/var/www in two servers can be synchronizedDo not reboot the computer, the manual execution of the script can al
I. Introduction of UnisonUnison is a file Sync tool that can be used under Windows, Linux, and other Unix platforms to keep content consistent between two folders (local or network). Unison has the same features as some other synchronization tools or file systems, but it also has its own characteristics:1. Cross-platform use;2. No special requirements for kernel and user rights;3.
The project has a new demand, in more than one app server randomly upload Pictures/resource files, one of the app needs to read the uploaded images, so that the previous rsync+inotify settings will not be able to deal with.So we study the next multi-directional trigger real-time synchronization mechanism, we can experiment, if there is inappropriate place, please contact me to amend, thank you.Here's the start.First, IntroductionUnison is a file Sync
real-time synchronization. When the local system fails, a copy of the same data is retained on the remote host and can continue to be used. Using the DRBD feature in high Availability (HA) can be used instead of a shared disk array. Because the data exists both on the local host and on the remote host, The remote host can continue to service as long as it uses the backup data on top of it.
Rsync
Unison
Drbd
system load, especially when several hundred megabytes of large packets are encountered, which not only occupies the bandwidth, in addition, the subsequent compressed packages are blocked, which affects the real-time processing of website content. In addition, dynamic application updates occupy a large amount of time in our daily work and are repetitive and boring, one thing that is completely technical is that for some applications that only have two or three servers, it takes a little time an
Inotify + unison implement bidirectional Real-time Data SynchronizationA new project was created a few days ago. The website architecture is that the front-end uses nginx to reverse proxy the two backend tomcat servers. At this time, the data between the two tomcat servers is synchronized in real time, which becomes a problem? I have searched for many solutions on the Internet. There are several methods for file synchronization under liux: 1. nfs for
Unison + inotify implement real-time bidirectional data synchronization
unisonIt is a file synchronization tool across windows, linux, and mac OS platforms. It not only supports local synchronization, but also supports synchronization through network protocols such as SSH, RSH, and Socket. Even better,unisonTwo-way synchronization is supported. You can synchronize data from A to B or from B to A without additional settings.
inotifyIs a Linux kernel fe
Unison Introduction: two-way image synchronization tool that supports cross-platform synchronization. Unios can keep the content consistent between the two folders on the local disk and synchronize network data.
Features: cross-platform
1. No special requirements on kernel and User Permissions
2. Unison is bidirectional and can automatically update the two copies without any conflict.
3. Two methods, one is
One: Unison introduction
Unison is a file synchronization tool available under Windows and UNIX platforms that enables two folders (local or network) to keep content consistent. Unison has the same characteristics as some other synchronization tools or file systems, but it has its own characteristics:
Cross-platform use;
No special requirements for kernel and
Introduction of Unison
Unison is a file synchronization tool available under Windows and UNIX platforms that enables two folders (local or network) to keep content consistent. Unison has the same characteristics as some other synchronization tools or file systems, but it has its own characteristics:
Cross-platform use;
No special requirements for kernel and us
Using unison+inotify to realize bidirectional real-time synchronization of dataEnvironment: Centos 6.5 64-bitserver1:192.168.1.201server2:192.168.1.250Requirements software: OCaml Unison inotifyI am all installed using Yum, if you like to use the source code compiled installation can download the source package.Yum Install OCaml unison inotifyThe first step : To
The installation of unison under MacOSX-Linux Enterprise Application-Linux server application information. The following is a detailed description. Unison is a cross-platform file synchronization tool that not only supports local synchronization, but also supports synchronization through network protocols such as SSH, RSH, and Socket. Unison supports both one-way
Unison is a free and cross-platform file synchronization tool. With it, we can save two sets of file copies (instances) on two different platforms, or save it on different disks of the same system. Unlike a simple image method or backup utility, Unison can update two copies of the distributed directory structure at the same time. It can detect and display conflicting updates. Unlike distributed file systems
The multi-machine data synchronization mechanism Unison + inotify-tools was accidentally encountered in the QQ group this morning when I heard a problem about two-way Real-Time Synchronization of different machines. When I thought of it, I found that the database (mysql ), it seems that the two-way real-time synchronization technology seems very limited, not to mention the need to achieve two-way Real-Time Synchronization of multiple machines, a varie
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.